package com.example.dynamicdatasource.mapper.cluster;

import com.example.dynamicdatasource.entity.cluster.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author haitao
 * @date 2022/6/7 2:58 下午
 */
@Mapper
@Repository("clusterEmployeeMapper")
public interface ClusterEmployeeMapper {

    Employee getEmpById(int id);

    void saveAll(@Param("employeeList") List<Employee> employeeList);
}